
package br.edu.unip.tcc.jogdadavelha.gui;

import br.edu.unip.tcc.jogdadavelha.JogoVelhaMIDlet;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;

/**
 * @author Fabricio V. Zamara
 */
class TelaSobre extends Form implements CommandListener {
// tela que mostra inf do aplicatico
	private Displayable previous;

	public TelaSobre(Displayable previous) {
		super("Sobre");
		this.previous = previous;
		this.setCommandListener(this);
		this.addCommand(new Command("Voltar", Command.BACK, 1));
		this.append("Jogo da Velha Bluetooth \nJogo da Velha desenvolvido por" +
                        " Fabricio Vieira Zamara.\n " +
                        "O codigo pode ser acessado em\n" +
                        "http://code.google.com/p/jogodavelhabluetooth/");
	}

	public void commandAction(Command arg0, Displayable arg1) {
		JogoVelhaMIDlet.getInstance().setCurrent(this.previous);
	}
}
